<?php

namespace Xrfg\Core\Trading\Spot\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Xrfg\Core\Trading\Spot\Models\Pair.
 *
 * @property int    $id              交易对ID
 * @property string $symbol          交易对代码
 * @property int    $status          状态: 0:未开启交易 1:交易中 2:暂停交易 3:关闭交易
 * @property string $coin_name       币种名称
 * @property int    $coin_id         币种ID
 * @property int    $coin_decimals   币种小数位
 * @property string $market_name     交易区名称
 * @property int    $market_id       交易区ID
 * @property int    $market_decimals 交易区小数位
 * @property float  $price_step      价格步长
 * @property float  $number_min      最小数量
 * @property float  $number_step     数量步长
 * @property float  $total_min       总计最小
 * @property float  $buy_fee         买单手续费
 * @property float  $sell_fee        卖单手续费
 * @property int    $is_recommend    是否首页推荐位显示 0:不显示 1:显示
 *
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair query()
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereBuyFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereCoinDecimals($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereCoinId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereCoinName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereIsRecommend($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereMarketDecimals($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereMarketId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereMarketName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereNumberMin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereNumberStep($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair wherePriceStep($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereSellFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereSymbol($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\Xrfg\Core\Trading\Spot\Models\Pair whereTotalMin($value)
 * @mixin \Eloquent
 */
class Pair extends Model
{
    // 未开启交易
    const STATUS_PRE_TRADING = 0;
    // 交易中
    const STATUS_TRADING = 1;
    // 交易暂停
    const STATUS_BREAK = 2;
    // 交易关闭
    const STATUS_HALT = 3;

    protected $table = 'trading_spot_pairs';
}
